/*menu*/
function formAdd() {
	$('#content').load('add.html', function(){
		initCategorie(getData());
		theSlide();
		geoCoder();
		radioPriorite();
		timePicker();
		datepicker1();
		datepicker2();
		ajout_tache();
		policeTask();
		boutonAdd_HTML("add");
	});
}

function formEdit(id){
	$('#content').load('add.html', function(){
		initCategorie(getData());
		theSlide();
		geoCoder();
		radioPriorite();
		timePicker();
		datepicker1();
		datepicker2();
		edit_tache(id,getData());
		policeTask();
		boutonAdd_HTML("edit");
	});
}
	
$(function(){
	routes['/add']=formAdd;
	routes['/edit/:id']=formEdit;
});

//script pour bouton priorité task jQuery
function radioPriorite(){
	$( "#radio" ).buttonset();
};
// fin script pour bouton priorité task jQuery